import React from 'react';
import { BrowserRouter as Router, Routes, Route } from 'react-router-dom';
import Home from '../view/Home/Home';
import Discover from '../view/Discover/Discover';
import Movement from '../view/Movement/Movement';
// import Message from '../view/Message/Message';
import My from '../view/My/My';
import Search from '../view/Search/Search';

function App() {
  return (
    <Router>
      <Routes>
        <Route path="/" element={<Home />} />
        <Route path="/discover" element={<Discover />} />
        <Route path="/movement" element={<Movement />} />
        {/* <Route path="/message" element={<Message />} /> */}
        <Route path="/my" element={<My />} />
        {/* 分包 */}
        <Route path="/search" element={<Search />} />
      </Routes>
    </Router>
  );
}

export default App;
